from django.urls import path, include
from rest_framework.routers import DefaultRouter
from team.views import UploadExcelView, ExcelFileViewSet, PersonViewSet, UpdatePersonView

router = DefaultRouter()
router.register(r'excelfiles', ExcelFileViewSet, basename='excelfile')
router.register(r'persons', PersonViewSet, basename='person')

urlpatterns = [
    path('upload_excel/', UploadExcelView.as_view(), name='upload_excel'),
    path('persons/<int:pk>/update/', UpdatePersonView.as_view(), name='update_person'),
    path('', include(router.urls)),
]
